/**
 * 通用grid模版
 */
Ext.define("app.components.ui.list.Grid", {
    extend: "Ext.grid.Panel",
    alias: "widget.grid_",
    extColumns: [],//表格列
    extStore: {},//数据源
    columnLines: true,
    pageSizeList:null,
    header:false,
    border:false,
    rowLines: true,
    requires:["app.components.ui.list.PageBar"],
    initComponent: function () {
        this.store =this.extStore;
        this.dockedItems =[
            {
                xtype: "toolbar",
                dock: "top",
                // items: this.extButtons
            },
            {
                xtype: "pagebar_",
                store: this.extStore,
                dock: "bottom",
                displayInfo: true,
                pageSizeList:this.pageSizeList,
            }] ;
        this.columns =this.extColumns ;
        this.callParent();
    }
})
